]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
notificationDaemon: Do the same for GTK+ notifications
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 14 Feb 2015 05:01:20 +0000 (06:01 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 20 Feb 2015 16:39:26 +0000 (17:39 +0100)
There is not good reason why activating a GTK+ notification should
behave fundamentally different from fd.o notifications - we don't
raise the app because we expect it to perform an appropriate action,
but that does not include closing overview or calendar for us ...

https://bugzilla.gnome.org/show_bug.cgi?id=744817

js/ui/notificationDaemon.js

index feb91854d53870ef9018bcdda8dd61afcd4c6b7c..aedda638fa9e77986f6a5ef13dda56e012ac0f43 100644 (file)
@@ -716,11 +716,17 @@ const GtkNotificationDaemonAppSource = new Lang.Class({
     activateAction: function(actionId, target) {
         let app = this._createApp();
         app.ActivateActionRemote(actionId, target ? [target] : [], getPlatformData());
+
+        Main.overview.hide();
+        Main.panel.closeCalendar();
     },
 
     open: function() {
         let app = this._createApp();
         app.ActivateRemote(getPlatformData());
+
+        Main.overview.hide();
+        Main.panel.closeCalendar();
     },
 
     addNotification: function(notificationId, notificationParams, showBanner) {